Component({
  properties: {
    imgList: {
      type: Array,
      value: []
    },
    interval: {
      type: Number,
      value: 5000
    },
    duration: {
      type: Number,
      value: 1000
    },
    itemMargin: {
      type: String,
      value: {
        left: '0',
        right: '0',
        top: '0',
        bottom: '0'
      }
    },
    circular: {
      type: Boolean,
      value: true
    },
    imgBorderReduis: {
      type: Boolean,
      value: false
    },
    height: {
      type: String,
      value: '350rpx'
    },
  },
  data: {
    currentIndex: 0
  },
  methods: {
    change: function (e) {
      this.setData({
        currentIndex: e.detail.current
      })
    }
  }
})